<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id"
            data-rule="required"
            data-source="user/user/index"
            data-field="nickname"
            data-primary-key="id"
            data-search-field="nickname,mobile"
            data-format-item="{nickname}({mobile})"
            data-page-size="10"
            class="form-control selectpage"
            name="row[user_id]"
            type="text"
            value="">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Educational_back')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-educational_back" class="form-control " rows="5" name="row[educational_back]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Work_experience')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-work_experience" class="form-control " rows="5" name="row[work_experience]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Certificate_reward')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-certificate_reward" class="form-control " rows="5" name="row[certificate_reward]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Self_assessment')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-self_assessment" class="form-control " rows="5" name="row[self_assessment]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" name="row[phone]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-birthday" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[birthday]" type="text" placeholder="请选择出生日期">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age" class="form-control" name="row[age]" type="text" readonly placeholder="根据出生日期自动计算">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Work_time')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-work_time" class="form-control" name="row[work_time]" type="number">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Education_background')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-education_background" class="form-control" name="row[education_background]">
                <option value="">请选择学历</option>
                {volist name="educationList" id="item"}
                <option value="{$item}">{$item}</option>
                {/volist}
            </select>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Club_one')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-club_one_id" data-rule="required" data-source="club/index" class="form-control selectpage" name="row[club_one_id]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Club_two')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-club_two_id" data-rule="required" data-source="club_dtl/index" class="form-control selectpage" name="row[club_two_id]" type="text" value="">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area" data-rule="required" data-source="teacher_area/index" data-field="name" class="form-control selectpage" data-multiple="true"  name="row[area]" type="text" value="">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Is_premium')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            {:build_radios('row[is_premium]', ['0'=>__('否'), '1'=>__('是')], 0)}-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Tag_me')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-tag_me"type="text" class="form-control" data-role='tagsinput' value="" data-tagsinput-options='{"maxTags":4, "trimValue":true}' />-->
<!--            <small class="help-block" style="color: #999; font-size: 12px;margin-top: 0px;margin-bottom: -5px">输入标签按回车可分隔一个标签</small>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Hourly_rate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-hourly_rate" class="form-control" step="0.1" name="row[hourly_rate]" type="number">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appointment_time_week')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appointment_time_week"
                   data-source="identity_info/pull"
                   data-field="name"
                   class="form-control selectpage"
                   data-multiple="true"
                   name="row[appointment_time_week]"
                   type="text"
                   value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appointment_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="row">
                <div class="col-xs-6">
                    <input id="c-start_time" class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[start_time]" type="text" value="" placeholder="开始时间">
                </div>
                <div class="col-xs-6">
                    <input id="c-end_time" class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[end_time]" type="text" value="" placeholder="结束时间">
                </div>
            </div>
            <input id="c-appointment_time" type="hidden" name="row[appointment_time]" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Main_score')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-main_score" class="form-control" step="0.1" name="row[main_score]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('People')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-main_people" class="form-control" step="1" name="row[main_people]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label for="c-imgs" class="control-label col-xs-12 col-sm-2">{:__('Imgs')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-imgs" data-rule="" class="form-control" size="50" name="row[imgs]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-imgs" class="btn btn-danger faupload" data-input-id="c-imgs" data-mimetype="image/*" data-multiple="true" data-preview-id="p-imgs"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-imgs" class="btn btn-primary fachoose" data-input-id="c-imgs" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-imgs"></ul>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label for="c-teacher_certification" class="control-label col-xs-12 col-sm-2">{:__('Teacher_certification')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-teacher_certification" data-rule="" class="form-control" size="50" name="row[teacher_certification]" type="text" value="">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-teacher_certification" class="btn btn-danger faupload" data-input-id="c-teacher_certification" data-mimetype="image/*" data-multiple="true" data-preview-id="p-teacher_certification"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-teacher_certification" class="btn btn-primary fachoose" data-input-id="c-teacher_certification" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-imgs"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-teacher_certification"></ul>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="c-diploma" class="control-label col-xs-12 col-sm-2">{:__('Diploma')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-diploma" data-rule="" class="form-control" size="50" name="row[diploma]" type="text" value="">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-diploma" class="btn btn-danger faupload" data-input-id="c-diploma" data-mimetype="image/*" data-multiple="true" data-preview-id="p-diploma"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-diploma" class="btn btn-primary fachoose" data-input-id="c-diploma" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-imgs"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-diploma"></ul>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="c-occupational_qualifications" class="control-label col-xs-12 col-sm-2">{:__('Occupational_qualifications')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-occupational_qualifications" data-rule="" class="form-control" size="50" name="row[occupational_qualifications]" type="text" value="">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-occupational_qualifications" class="btn btn-danger faupload" data-input-id="c-occupational_qualifications" data-mimetype="image/*" data-multiple="true" data-preview-id="p-occupational_qualifications"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-occupational_qualifications" class="btn btn-primary fachoose" data-input-id="c-occupational_qualifications" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-imgs"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-occupational_qualifications"></ul>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="c-professional_skill" class="control-label col-xs-12 col-sm-2">{:__('Professional_skill')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-professional_skill" data-rule="" class="form-control" size="50" name="row[professional_skill]" type="text" value="">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="faupload-professional_skill" class="btn btn-danger faupload" data-input-id="c-professional_skill" data-mimetype="image/*" data-multiple="true" data-preview-id="p-professional_skill"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-professional_skill" class="btn btn-primary fachoose" data-input-id="c-professional_skill" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-imgs"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline faupload-preview" id="p-professional_skill"></ul>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label for="c-health_certificate" class="control-label col-xs-12 col-sm-2">{:__('Health_certificate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-health_certificate" data-rule="" class="form-control" size="50" name="row[health_certificate]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-health_certificate" class="btn btn-danger faupload" data-input-id="c-health_certificate" data-mimetype="image/*" data-multiple="true" data-preview-id="p-health_certificate"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-health_certificate" class="btn btn-primary fachoose" data-input-id="c-health_certificate" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-health_certificate"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-identity_card_img" class="control-label col-xs-12 col-sm-2">{:__('Identity_card_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-identity_card_img" data-rule="" class="form-control" size="50" name="row[identity_card_img]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-identity_card_img" class="btn btn-danger faupload" data-input-id="c-identity_card_img" data-mimetype="image/*" data-multiple="true" data-preview-id="p-identity_card_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-identity_card_img" class="btn btn-primary fachoose" data-input-id="c-identity_card_img" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-identity_card_img"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-no_crime" class="control-label col-xs-12 col-sm-2">{:__('No_crime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-no_crime" data-rule="" class="form-control" size="50" name="row[no_crime]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-no_crime" class="btn btn-danger faupload" data-input-id="c-no_crime" data-mimetype="image/*" data-multiple="true" data-preview-id="p-no_crime"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-no_crime" class="btn btn-primary fachoose" data-input-id="c-no_crime" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imgs"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-no_crime"></ul>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Course_outline')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-course_outline" class="form-control " rows="5" name="row[course_outline]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Teaching_objectives')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-teaching_objectives" class="form-control " rows="5" name="row[teaching_objectives]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Jxjh')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-jxjh" class="form-control " rows="5" name="row[jxjh]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[addtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Main_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[main_status]', ['1'=>__('显示'), '2'=>__('不显示')], 1)}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
